package com.study.service.impl;

import com.study.service.MessageService;
import org.springframework.stereotype.Service;

/**
 * 消息服务
 *
 * @author 西街恶人
 * @date 2021/5/24
 */
@Service
public class MessageServiceImpl implements MessageService {

    @Override
    public void send(String phoneNumber, String message) {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("给" + phoneNumber + "发送了一条短信：" + message);
    }
}
